package com.yexin.mail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yexin.common.utils.PageUtils;
import com.yexin.mail.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author yexin
 * @email yexin@gmail.com
 * @date 2020-09-08 23:59:36
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeByMenuIds(List<Long> asList);

    /**
     * 找到 cateid 下的子路径
     * @param attrGroupId
     * @return
     */
    Long[] findCatelogpath(Long attrGroupId);

    void updateCascade(CategoryEntity category);
}

